package com.gulimall.coupon.controller;


import cn.hutool.core.lang.UUID;
import com.gulimall.api.domain.CouponDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 优惠券信息 前端控制器
 * </p>
 *
 * @author 坤哥
 * @since 2025-08-25
 */
@RestController
@RequestMapping("/coupon")
public class CouponController {

    /**
     * 用于openFeign调用接口
     * 查询优惠券
     */
    @GetMapping("/single")
    public CouponDTO getCouponDTO(){
        CouponDTO couponDTO = new CouponDTO();
        couponDTO.setId(UUID.randomUUID().toString());
        couponDTO.setCouponType("会员优惠券");
        couponDTO.setCouponName("瑞星咖啡买一送一");
        return couponDTO;
    }

}
